/**
 * 
 */
$(function() {
	$('.showScoreBtn').click(function() {
		var scoreId = $(this).attr('scoreId');
		$.ajax({
			type:'POST',
			url:'/OnlineExam/showscore',
			dataType : "json",
			data:{
				scoreId:scoreId
			},
			success:function(data){
				$('#userName').text(data.score.userName);
				$('#subjectName').text(data.score.subjectName);
				$('#subjectDescription').text(data.score.subjectDescription);
				$('#examTime').text(data.score.examTime);
				$('#score').text(data.score.score);
				$('#showScore').modal('show');
			}
		});
	});
	$('#scorePrint').click(function() {
		$('#showScore .modal-body').jqprint();
	});
});